package com.yubest.springboothello.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author hweiyu
 * @Description
 * @Date 2022/9/1 14:17
 */
@RestController
public class HelloController {

    @GetMapping(value = "/test")
    public String test() {
        return "Hello Test!";
    }

    @GetMapping(value = "/hello")
    public String hello() {
        return "Hello Spring Boot!";
    }

    @GetMapping(value = "/say/{msg}")
    public String say(@PathVariable String msg) {
        return "say, " + msg;
    }
}
